#include <stdio.h>
#include <string.h>

enum WEEK
{
    Mon,    //可以指定一个值
    Tue,
    Wed,
    Thu,
    Fri,
    Sat,
    Sun
};

int main(int argc, char const *argv[])
{
    enum WEEK day;  //day 是一个整型变量， 理解为 int day
    for(day = Mon;day <=Sun;day++)
    {
        printf("%d ",day);
    }
    printf("\n");
    day = Thu;
    printf("Thu=%d\n",day);

    return 0;
}
